package com.qingpeng.pay.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qingpeng.pay.R;
import com.qingpeng.pay.beans.CodeListBean;

public class CodeLIstAdapter extends BaseQuickAdapter<CodeListBean.DataProductBean, BaseViewHolder> {
    public CodeLIstAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CodeListBean.DataProductBean item){
        helper.setText(R.id.code_number,"邀请码 :"+item.getCode());
        if (item.getStatus()!=1){
            helper.setText(R.id.code_status,"未使用");
        }
    }
}
